package work;

public class Teacher {
    private String name;
    private String sex;
    private int age;
    private int teachYear;
    private String extent;
    Teacher(String name,String sex,int age,String extent,int teachYear){
        this.name=name;
        this.sex=sex;
        this.age=age;
        this.extent=extent;
        this.teachYear=teachYear;

    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public int getTeachYear() {
        return teachYear;
    }
    public void setTeachYear(int teachYear) {
        this.teachYear = teachYear;
    }
    public String getExtent() {
        return extent;
    }
    public void setExtent(String extent) {
        this.extent = extent;
    }

    void theoryTeaching() {
        System.out.println("实施理论授课");
    }
    void show() {
        System.out.println("大家好，我的姓名是："+this.getName()+"我的性别是:"+this.getSex()+
                "我的年龄是："+this.getAge()+"我的老龄："+this.getTeachYear()+"我的所在中心"+this.getExtent());
    }
}
